Problem Note 34600: Duplicate titles and footnotes might appear on graphics output written to PDF when using a SAS® SG procedure or ODS Graphics
Duplicate titles and footnotes might appear on graphics output when using a SAS SG procedure (such as SGPANEL) or ODS Graphics and the ODS PDF destination. Each title and/or footnote appears once inside the graph and once at the top or bottom of the page. No errors or warnings are written to the SAS® log when this occurs.
To circumvent the problem, do one of the following:
- Use the ODS RTF destination instead of ODS PDF. The problem does not occur with ODS RTF.
- Use PROC REPORT to generate the title on the graph instead of using a TITLE statement. Please see the Full Code tab for an example.
- Beginning with SAS® 9.3, include the NOGTITLE and NOGFOOTNOTE options in the ODS PDF statement.
Operating System and Release Information
SAS System | SAS/GRAPH | OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M5 |
Linux for x64 | 9.2 TS1M0 | 9.4 TS1M5 |
HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M5 |
Linux | 9.2 TS1M0 | 9.4 TS1M5 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M5 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M5 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M5 |
Windows Vista for x64 | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M5 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
z/OS | 9.2 TS1M0 | 9.4 TS1M5 |
Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M5 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In this example, PROC REPORT is used with ODS PDF to generate a title above the graph instead of using a TITLE statement.
/* Define a data set with a variable containing the title text. */
data test;
title_text="Sample Title";
output;
run;
options nonumber nodate center;
/* Be sure to specify the STARTPAGE=NO option */
/* on the ODS PDF statement. */
ods listing close;
ods pdf file="file.pdf" notoc startpage=no;
title;
/* Use PROC REPORT to generate the title. */
proc report nowd noheader style(report)={rules=none frame=void outputwidth=100%};
column title_text;
define title_text / style={just=c};
run;
/* Now generate the graph. */
proc sgplot data=sashelp.class;
vbar age / response=height;
run;
ods pdf close;
ods listing;
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-02-10 08:58:21 |
Date Created: | 2009-01-26 15:20:58 |